<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<?
session_start();
require_once 'utils/user.php';
require_once 'utils/archive.php';
ManageUser::doLogin();
$o = ManageArchive::doSearch();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/all.css"/>
    </head>
    <body>
        <?require_once 'page/header.php';?>
        <form action="search.php" method="get">
            <input type="text" name="q" value="<?=isset($_GET['q'])?$_GET['q']:""?>"/>
            <input type="submit" name="submit" value="search"/>
        </form>
        <hr/>
        <? if ($o) {
            echo '<ul>';
            foreach ($o as $a) echo "<li><a href='read.php?n=".str_replace(' ', '_', $a->getTitle())."'>".$a->getTitle()."</a>";
            echo '</ul>';
            }?>
    </body>
</html>
